//
//  ModelSelectionNavViewController.m
//  CS Inventory Manager
//
//  Created by Billy Zoellers on 3/25/13.
//  Copyright (c) 2013 Transylvania University. All rights reserved.
//

#import "ModelSelectionNavViewController.h"
#import "ModelSelectionViewController.h"
#import "EditItemDetailViewController.h"

@interface ModelSelectionNavViewController ()

@end

@implementation ModelSelectionNavViewController

@synthesize theItem,delegate;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];

	// Do any additional setup after loading the view.
}

- (void)goAway {
    
    [delegate closePopover];
    
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    ModelSelectionViewController *nextController = segue.destinationViewController;
    NSLog(@"NavController, type id: %i",[[theItem myType] typeId]);
    [nextController setDelegate:self];
    
}

@end
